package gui;

/**
 *	@(#)Polygonal.java
 *
 *	The <code>Polygonal</code> interface has to be implemented
 *	by component classes which may have a polygonal shape.
 *
 *	@author Grzegorz Kobiela
 *	@version 1.0 2007/9/11
 */
public interface Polygonal
{
	/**
	 *	Sets the outline polygon defining the active area.
	 *	Throws a null pointer exception if null is provided.
	 *	@param polygon the polygon
	 */
	public void setPolygon(java.awt.Polygon polygon);

	/**
	 *	Returns the outline polygon.
	 *	@return the outline polygon
	 */
	public java.awt.Polygon getPolygon();
}